Skip to content

ext/com_dotnet: Use zend_register_long_constant instead of manual constant setup#21465

Open
arshidkv12 wants to merge 3 commits intophp:masterfrom
arshidkv12:dotnet-1
Open

ext/com_dotnet: Use zend_register_long_constant instead of manual constant setup#21465
arshidkv12 wants to merge 3 commits intophp:masterfrom
arshidkv12:dotnet-1

Conversation

@arshidkv12
Copy link
Contributor

No description provided.

zend_register_constant(&c);
zend_register_long_constant(
ZSTR_VAL(const_name),
ZSTR_LEN(const_name),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like const_name will leak. It previously moved ownership, or was released. I don't know if this code path is tested in CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants